home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Utilities / Workspace / Locus / Source / Inspector.h < prev    next >
Text File  |  1995-06-12  |  2KB  |  95 lines

  1.  
  2. /*
  3.     Copyright 1993  Jeremy Slade.  All rights reserved.
  4. */
  5.  
  6. /*
  7.     Project: Locus
  8.     
  9.     Class: Inspector
  10.     
  11.     Description:
  12.     [ FULL DESCRIPTION ]
  13.     
  14.     Original Author: Jeremy Slade
  15.     
  16.     Revision History:
  17.         Created
  18.             V.101    JGS Mon Feb  8 22:28:42 GMT-0700 1993
  19.             
  20. */
  21.  
  22.  
  23. #ifndef Inspector_h
  24. #define Inspector_h
  25.  
  26. #define Inspector_VERSION     (101)
  27.  
  28.  
  29. #import <objc/Object.h>
  30.  
  31.  
  32. // Inspector modes
  33. #define INSPECT_NONE        0
  34. #define INSPECT_ITEM        1
  35. #define INSPECT_GROUP        2
  36. #define INSPECT_FOLDER    3
  37.  
  38. // Strings for each ispector mode
  39. extern char *inspectorTitles[];
  40.  
  41.  
  42. @interface Inspector : Object
  43. {
  44.     id    target;    // The object being inspected
  45.     
  46.     // General Inspector stuff
  47.     id    panel;
  48.     id    paneView;    // SwapView for different Panes
  49.     id    currentPane;
  50.     id    modeMenu;    // Inspector mode selector PupUpList
  51.     id    modeCover;    // Cover button for modeMenu -- need this to set its title
  52.     int previousMode;    // last mode before set to INSPECT_NONE
  53.     
  54.     // Different panes
  55.     id    noInspectorPane;
  56.     id    folderPane;
  57.     id    groupPane;
  58.     id    itemPane;
  59.     id    selectionPane;
  60.     
  61. }
  62.  
  63. // Creating and initializing
  64. + initialize;
  65. - init;
  66. - awakeFromNib;
  67. - free;
  68.  
  69. // Showing the inspector and setting the mode
  70. - showInspector:sender;
  71. - panel;
  72. - setFolderMode:sender;
  73. - setGroupMode:sender;
  74. - setItemMode:sender;
  75. - setInspectorMode:(int)aMode;
  76. - (int)inspectorMode;
  77. - (BOOL)canInspect:anObject;
  78. - inspect:anObject;
  79. - inspecting;
  80. - update;
  81.  
  82. // Selecting the Group Name field
  83. - selectGroupName:sender;
  84.  
  85. // SwapView delegate methods
  86. - swapPaneFor:sender;
  87.  
  88. // Window delegate methods
  89. - windowDidMove:sender;
  90. - windowWillClose:sender;
  91.  
  92. @end
  93.  
  94. #endif // Inspector_h
  95.